package com.cloudbroker.bcs.platform.ltb.bizapi.constants.type;

/**
 * 客户账户类型
 * @author zhaohc
 *
 */
public enum ClientAccountType {
    
    /**
     * 证券账户
     */
    STOCK(1, "证券账户"),
    
    /**
     * 期货账户
     */
    FUTURE(2, "期货账户"),
    
    /**
     * 配资账户
     */
    WITH_FUNDING(3, "配资账户"),
    
    ;
    
    private final int val;
    
    private final String description;
    
    private String toString;
    
    private ClientAccountType(int val, String description) {
        this.val = val;
        this.description = description;
    }
    
    public int getVal() {
        return val;
    }
    
    public String getDescription() {
        return description;
    }
    
    @Override
    public String toString() {
        if (null == toString) {
            toString = new StringBuilder().append("ClientAccountType[").append(val).append(':').append(description)
                    .append(']').toString();
        }
        return toString;
    }
    
}
